package com.zq.gmall.user.controller;


import com.zq.gmall.bean.UmsMemberReceiveAddress;
import com.zq.gmall.service.IUmsMemberReceiveAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 * 会员收货地址表 前端控制器
 * </p>
 *
 * @author zheng
 * @since 2020-02-15
 */
@Controller
@RequestMapping("/user/ums-member-receive-address")
public class UmsMemberReceiveAddressController {

    @Autowired
    IUmsMemberReceiveAddressService iUmsMemberReceiveAddressService;

    @RequestMapping("/selectAll")
    @ResponseBody
    public List<UmsMemberReceiveAddress> selectAll(){
        return iUmsMemberReceiveAddressService.selectAll();
    }

    @RequestMapping("selectById/{id}")
    @ResponseBody
    public UmsMemberReceiveAddress selectById(@PathVariable("id") String id){
        return iUmsMemberReceiveAddressService.selectById(id);
    }


}

